<?php
/**
 * Created by Zhy
 * User: Zhy
 * Date: 2024/2/20
 * Time: 9:26
 */

namespace app\api\model;

use think\Model;

class Base extends Model
{
    static $limit = 12;

    /**
     * 读取器，获取完整图片绝对路径
     * @param $url  图片地址
     * @return string
     */
    protected function prefixImgUrl($url)
    {
        $prefixUrl = http_type() . $url; // 组装成完整路径
        return $prefixUrl;
    }
}